import React, { Component } from 'react'
import './SearchInput.scss'
import {withRouter} from 'react-router-dom'
 class SearchInput extends Component {
    //  跳转到搜索中心页面
    handSearchContent=() => {
        this.props.history.push('/searchContent')
    }
    render() {
        return (
            <div className='serarchInput'>
                <div className='serarchInput-content' onClick={this.handSearchContent}>
                    搜索
                </div>
            </div>
        )
    }
}
export default withRouter(SearchInput)
